﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.DAO.DAO;
using QUANLYCHAMCONG.BL.Entities;
using System.Data;

namespace QUANLYCHAMCONG.BL.BUS
{
    public class SHILFBUS
    {
     
        public SHILFBUS() { }
        public static bool Insert(SHILF ca)
        {
            SHILFDAO dao = new SHILFDAO();
            return dao.Insert(ca);
        }
        public static bool Update(SHILF ca)
        {
            SHILFDAO dao = new SHILFDAO();
            return dao.Update(ca);
        }
        public static bool Delete(SHILF ca)
        {
            SHILFDAO dao = new SHILFDAO();
            return dao.Delete(ca);
        }
        public static DataTable SelectAll()
        {
            SHILFDAO dao = new SHILFDAO();
            return dao.SelectALL();
        }
        public static DataTable SelectPK(SHILF ca)
        {
            SHILFDAO dao = new SHILFDAO();
            return dao.SelectByPK(ca);
        }
        public static string GetID()
        {
            SHILFDAO dao = new SHILFDAO();
            return "CA" + dao.GetID().ToString();
        }
        public static DataTable TongCong(SHILF ca)
        {
            SHILFDAO dao = new SHILFDAO();
            return dao.TongCong(ca);
        }
    }
}
